package third;

import java.util.Scanner;

public class five_17 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("输入一个1到15之间的整数");
        int num =input.nextInt();
        for(int i=0;i<num;i++){
            for(int j=1;j<=2*(num-i);j++){
                System.out.print(" ");
            }
            for(int j=num-i;j<=i+num;j++){
                if(j<num){
                    System.out.print(Math.abs((j-num+1))+2+" ");
                }
                else{
                    System.out.print(Math.abs((j-num+1))+" ");
                }

            }
            System.out.println();
        }
    }
}
